const mysqlTool = require('../util/mysqlTool');

mysqlTool.initConnection({
    host: 'localhost',
    port: '3306',
    user: 'root',
    password: 'root',
    database: 'clear'
})

exec();

function exec() {
    let sql = 'select * from t_bank';
    mysqlTool.query(sql, function (err, rows) {
        if (!err) {
            rows.forEach(x => {
                console.log(x.bank_id);
            })
        }
    })
}